﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Hicap.QRCodeWarehouse.Core.Migrations
{
    public partial class _02 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "CronExpression",
                table: "GenerationTask",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "SubordinateCompanyId",
                table: "GenerationTask",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CronExpression",
                table: "GenerationTask");

            migrationBuilder.DropColumn(
                name: "SubordinateCompanyId",
                table: "GenerationTask");
        }
    }
}